package com.ity.teamanagement.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author coderFu
 * @create 2021/5/23
 */
@Data
@ApiModel("茶树图片实体")
public class TeaImg {

    @ApiModelProperty("自增id")
    private Long id;

    @ApiModelProperty("图片组id")
    private Long keyId;

    @ApiModelProperty("图片类型id")
    private Long imgType;

    @ApiModelProperty("图片路径")
    private String path;

    @ApiModelProperty("茶树id")
    private Long teaMessageId;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private Date updateTime;
}
